
package com.dews.warn.convert;

import com.dews.warn.domain.entity.NotificationMessage;
import com.dews.warn.domain.vo.NotificationMessageVo;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
* 消息通知对象转换器
*
* @author qingfeng
* @date 2025-02-05
*/
@Mapper
public interface NotificationMessageConvert {

    NotificationMessageConvert INSTANCE = Mappers.getMapper(NotificationMessageConvert.class);

    NotificationMessage convert(NotificationMessageVo bean);
    NotificationMessageVo convert(NotificationMessage domain);
    List<NotificationMessageVo> convert(List<NotificationMessage> domains);
}
